package com.demo.design02.channel;

import com.demo.design02.mode.IPayModel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.math.BigDecimal;

/**
 * 支付抽象类
 * @author ytj
 * @date 2022/2/22
 */
public abstract class Pay {
    protected Logger logger= LoggerFactory.getLogger(Pay.class);

    protected IPayModel payModel;

    public Pay(IPayModel payModel){
        this.payModel=payModel;
    }

    public abstract String transfer(String uId, String tradeId, BigDecimal amount);
}
